#!/usr/bin/env python
# coding=utf-8

import redis

passwd = "reformer"

print ("hello")
rbd = redis.Redis(host="127.0.0.1", port=6379, db=1, password=passwd)
keys = rbd.keys("kiwi*")
if keys:
    rbd.delete(*keys)
rbd.close()
rbd = redis.Redis(host="127.0.0.1", port=6379, db=2, password=passwd)
keys = rbd.keys("swallow*")
if keys:
    rbd.delete(*keys)
rbd.close()
print ("bye")
